import React from 'react'

// 优惠券列表
export async function apiAppCouponInfoPage(params) {
    return await React.$post('trade/couponInfo/page', params);
}
// 提前结束
export async function apiAppCouponInfoEnd(params) {
    return await React.$get('trade/couponInfo/endCoupon', params);
}
//商品品类--tree
export async function apiGetGoodsClassifyTreeAll(params) {
    return await React.$post("admin/goodsClassify/treeAll", params);
}
// 商品类目
export async function apiQueryStoreClassifyTree(params) {
  return await React.$post("product/api/b/storeInfo/queryStoreClassifyTree", params)
}
//商品品牌-列表
export async function apiGetBrandinfoList(params) {
    return await React.$post("admin/brandInfo/list", params);
}
//查看门店详情
export async function apiGetStoreInfo(params) {
    return await React.$post("manage/api/b/storeInfo/getStoreInfo", params);
}
// 优惠券新建
export async function apiAppCouponInfoAdd(params) {
  return await React.$postJson('trade/couponInfo/addCoupon/Json', params);
}
// 优惠券改
export async function apiAppCouponInfoEdit(params) {
  return await React.$postJson('trade/couponInfo/editCount/Json', params);
}
// 详情
export async function apiGetCouponByIdListView(params) {
  return await React.$get(`trade/couponInfo/couponByIdList/${params}`);
}
